/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jili.ubert.clientapi.until;

import com.jili.ubert.clientapi.MsgEntity;
import com.jili.ubert.code.server2client.MsgResult;
import com.panemu.tiwulfx.common.TableData;

/**
 *
 * @author ChengJiLi
 */
public abstract class AbstractWorker {
    private AnswerHandler answerHandler;
    private TableData olddatalist;
    public abstract  void Onhandler(MsgEntity msg);

    public void IsSuccess(){
        getAnswerHandler().IsSuccess();
    }
    public void IsFalse(MsgResult rst){
        getAnswerHandler().IsFalse(rst);
    }

    /**
     * @param answer the answerHandler to set
     */
    public void setAnswerHandler(AnswerHandler answer) {
        this.answerHandler = answer;
    }

    /**
     * @return the answerHandler
     */
    public AnswerHandler getAnswerHandler() {
        return answerHandler;
    }

    public TableData getOlddatalist() {
        return olddatalist;
    }

    public void setOlddatalist(TableData olddatalist) {
        this.olddatalist = olddatalist;
    }
    
}
